---
layout: m1x_soap
title: Current Product Store
---

				    
<h2><a name="catalog_product.currentStore-Module%3AMageCatalog"></a>Module: Mage_Catalog</h2>


<h4><a name="catalog_product.currentStore-Resource%3Acatalogproduct"></a>Resource: catalog_product</h4>

<p><b>Aliases:</b></p>
<ul>
	<li>product</li>
</ul>


<h5><a name="catalog_product.currentStore-Method%3A"></a>Method: </h5>
<ul>
	<li>catalog_product.currentStore (SOAP V1)</li>
	<li>catalogProductCurrentStore (SOAP V2)</li>
</ul>


<p>Allows you to set/get the current store view.</p>

<p><b>Aliases:</b></p>
<ul>
	<li>product.currentStore</li>
</ul>



<p><b>Arguments:</b></p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> string </td>
<td> sessionId </td>
<td> Session ID </td>
</tr>
<tr>
<td> string </td>
<td> storeView </td>
<td> Store view ID or code (optional) </td>
</tr>
</tbody></table>


<p><b>Returns</b>:</p>

<table><tbody>
<tr>
<th> Type </th>
<th> Name </th>
<th> Description </th>
</tr>
<tr>
<td> int/string </td>
<td> storeView </td>
<td> Store view ID </td>
</tr>
</tbody></table>


<h4><a name="catalog_product.currentStore-Examples"></a>Examples</h4>

<h5><a name="catalog_product.currentStore-RequestExampleSOAPV1"></a>Request Example SOAP V1</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$client = new SoapClient('http://magentohost/api/soap/?wsdl');

// If somestuff requires api authentification,
// then get a session token
$session = $client-&gt;login('apiUser', 'apiKey');

$result = $client-&gt;call($session, 'catalog_product.currentStore', 'english');
var_dump ($result);</pre>
		</div>
</div></div>

<h5><a name="catalog_product.currentStore-RequestExampleSOAPV2"></a>Request Example SOAP V2</h5>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<div id="root">
		<pre class="theme: Default; brush: php; gutter: false">$proxy = new SoapClient('http://magentohost/api/v2_soap/?wsdl'); // TODO : change url
$sessionId = $proxy-&gt;login('apiUser', 'apiKey'); // TODO : change login and pwd if necessary
 
$result = $proxy-&gt;catalogProductCurrentStore($sessionId, 'english');
var_dump($result);</pre>
		</div>
</div></div>



				    
Create the Magento文件系统所有者                   			    
